package com.zhipu.balance.mobile.dao;

import com.raizlabs.android.dbflow.sql.language.SQLite;
import com.zhipu.balance.mobile.event.Personnel;
import com.zhipu.balance.mobile.event.Personnel_Table;

import java.util.List;

public class PersonnelDao {
    private PersonnelDao() {
    }

    private static final class SingletonHolder {
        private static final PersonnelDao INSTANCE = new PersonnelDao();
    }

    public static PersonnelDao getInstance() {
        return SingletonHolder.INSTANCE;
    }



    /**
     * 获取所有数据
     *
     * @return
     */
    public List<Personnel> getAllList() {
        return SQLite.select().from(Personnel.class).where().orderBy(Personnel_Table.personnelId,true).queryList();
    }

}
